package com.library.book.service;

import com.library.book.po.Admin;
import com.library.book.po.Book;
import com.library.book.po.BookCategory;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AdminService {
    boolean adminIsExist(String name);

    Admin adminLogin(String name, String password);

    boolean addBook(Book book);

    List<BookCategory> getBookCategories();

    boolean addBookCategory(BookCategory bookCategory);

    boolean updateAdmin(Admin admin, HttpServletRequest request);
}
